package com.guoxin.thread.threadlocal;

public class CreateThread extends Thread {

    private Resource resource;

    public CreateThread(Resource resource) {
        this.resource = resource;
    }

    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
            System.out.println(getName()+"----"+resource.getNum());
        }
    }
}
